package com.cch.cooperation.dao.bookkeeping.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 收支明细查询DTO
 *
 * @author cch
 */
@Data
@ApiModel("收支明细查询DTO")
public class BookkeepingQueryDTO {

    @ApiModelProperty(value = "用户id", hidden = true)
    private String userId;

    @ApiModelProperty("分类id")
    private String categoryId;

    @ApiModelProperty("空间id")
    private String zoneId;

    @ApiModelProperty("流水类型(1=支出 2=收入)")
    private Integer type;

    @ApiModelProperty("流水类型（1.支出 2.收入）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    @ApiModelProperty("流水类型（1.支出 2.收入）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
